// 颜色
$main-color: #007dff;
$auxiliary-color: #f6f8fa;
$border-color: #d8d8d8;
$line-color: #e1e6ed;
// 字体大小
$font-size: 14px;
$font-sizes: 18px;
$font-size1: 12px;

:deep(.el-select__wrapper) {
  width: 100%;
}

.purchase {
  // padding: 20px;
  background-color: #fff;
  position: relative;
  padding-bottom: 100px;

  // 头部
  &_header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 62px;
    max-height: 62px;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 20px 0 20px;
    overflow: hidden;

    button {
      background: #f2f3f5;
      width: 92px;
    }

    div {
      display: flex;
      justify-content: space-between;

      p {
        margin-right: 40px;
      }

      p:first-child {
        font-weight: bold;
      }
    }
  }

  // 所有业务
  .all-business {
    width: 100%;
    background: #f6f8fa;
    border-radius: 4px;
    padding-bottom: 20px;

    ::v-deep(.el-tabs__header) {

      // margin-bottom: 0;
      .el-tabs__nav-wrap {
        padding: 0 22px;
      }
    }

    .all-business-content {
      padding: 0 22px;

      .content-remarks {
        font-size: 14px;
        color: #3d3d3d;
        display: flex;
        flex-direction: row;
      }

      .refuse-info {
        box-sizing: border-box;
        border-radius: 4px 4px 4px 4px;
        border: 1px solid #dcdcdc;
        padding: 20px;
        overflow: hidden;
        background: #ffffff;
        margin-top: 16px;

        .reason {
          color: #ff3333;
          font-size: 14px;
          margin-bottom: 16px;
        }

        .refuse-remarks {
          color: #3d3d3d;
          font-size: 14px;
          display: flex;
          flex-direction: row;
        }
      }

      :deep(.refuse-remark-info) {

        // max-height: 350px;
        // overflow-y: scroll;
        img {
          width: 80px;
          height: 80px;
          border-radius: 4px;
          margin: 10px 10px 0 0;
        }

        video {
          width: 130px;
          height: 80px;
        }
      }
    }
  }

  // 供应商信息
  &_supply_information_name {
    font-size: 18px;
    color: #3d3d3d;
    margin-top: 15px;
    margin-bottom: 10px;
  }

  &_supply_information {
    padding: 0 20px 0 20px;

    // margin-bottom: 33px;
    p {
      font-size: 18px;
      margin: 20px 0 20px 0;
    }

    &_message {
      background-color: $auxiliary-color;
      padding: 20px;
      display: flex;
      justify-content: space-between;

      div {
        p {
          font-size: 14px;
          color: #1A1A1A;
        }
        .info_label {
          color: #4E5969;
        }
      }
    }

    &_serch {
      display: flex;
      align-items: center;

      p {
        margin-right: 10px;
      }

      div {
        display: flex;

        .el-select {
          width: 500px !important;
          min-width: 80% !important;

          .el-select__wrapper {
            width: 100% !important;
          }
        }

        button {
          margin-left: 20px;
        }
      }
    }
  }

  &_commodity_information {
    padding: 20px;

    p {
      font-size: 18px;
      margin: 20px 0 20px 0;
    }
  }

  .purchase_form {
    border-top: 1px solid #e2e8f0;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    margin-top: 13px;

    :deep(.el-input__wrapper) {
      // background: #fff !important;
      // box-shadow:none !important;
    }

    :deep(.el-textarea__inner) {
      background: #fff !important;
      // box-shadow:none !important;
    }

    &-left {
      flex: 2;
      padding: 20px;
      margin-right: 12px;

      :deep(.el-upload) {
        width: 50% !important;
        height: 100px !important;
        display: flex;
        flex-direction: column;
        // width: 80px;
        height: 80px;
        background: #f2f3f5;
        border-radius: 4px 4px 4px 4px;

        button {
          border: none !important;
          background-color: transparent !important;
        }

        p {
          color: #86909c !important;
        }
      }

      :deep(.el-input__inner) {
        text-align: left !important;
      }

      .img-box {
        .img {
          cursor: pointer;
          display: inline-block;
          width: 80px;
          height: 80px;
          border-radius: 4px;
          margin-right: 10px;
        }
      }

      .warehouse_content {
        width: 100%;
        height: 58px;
        border: 1px solid #dcdfe6;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        padding-left: 20px;
        overflow: hidden;

        .el-select {
          width: 50%;
        }
      }

      .business-invoice {
        display: flex;
        flex-direction: row;
        align-items: center;
        .is-business-invoice {
          display: flex;
          flex-direction: row;
          align-items: center;
          margin-right: 40px;
          .el-radio {
            margin-right: 10px;
          }
          .radio-button {
            .el-radio-button {
              margin-right: 8px;
              .el-radio-button__inner {
                border-left: 1px solid #dcdfe6;
              }
              &.is-active {
                .el-radio-button__inner {
                  border-left: 1px solid #007dff;
                }
              }
            }
          }
        }
      }
    }

    &-right {
      flex: 1;
      padding: 20px;
      background: #f6f8fa;
      border-radius: 0px 0px 0px 0px;
      border-left: 1px solid #e2e8f0;
      box-sizing: border-box;

      .header {
        display: flex;

        p {
          width: 64px;
        }

        .el-select {
          width: 200px;
        }

        :deep(.el-select__wrapper) {
          background-color: #fff;
        }
      }

      &-top {
        .header {
          display: flex;
          align-items: center;

          :deep(.el-select__wrapper) {
            box-shadow: none !important;
          }

          p {
            font-size: 14px;
            color: #3d3d3d;
            background-color: #fff;
            height: 32px;
            border-top-left-radius: 4px;
            border-bottom-left-radius: 4px;
            line-height: 32px;
            text-align: center;
            border-right: 1px solid #dcdfe6;
            margin-bottom: 0 !important;
          }
        }

        .title {
          font-size: 16px;
          color: #86909c;
          margin: 20px 0 20px 0;
        }

        div {
          p {
            font-size: 14px;
            color: #1a1a1a;
            margin-bottom: 10px;
          }

          p:first-child {
            color: #86909c;
          }
        }
      }

      // &-top{
      //     .header{
      //         p{
      //             font-size: 18px;
      //             color: #86909C;
      //             margin-bottom: 20px;
      //         }
      //     }
      //     p:nth-child(1){
      //         font-size: 18px;
      //         color: #86909C;
      //         margin-bottom: 20px;
      //     }
      //     div{
      //         margin-bottom: 10px;
      //         line-height: 2;
      //         p:nth-child(1){
      //             font-size: 14px;
      //             margin-bottom: 0px;

      //         }
      //     }
      // }
      // &-botton{
      //     p:nth-child(1){
      //         font-size: 18px;
      //         color: #86909C;
      //         margin-bottom: 20px;
      //     }
      //     div{
      //         margin-bottom: 10px;
      //         line-height: 2;
      //         p:nth-child(1){
      //             font-size: 14px;
      //             margin-bottom: 0px;

      //         }
      //     }
      // }
    }
  }

  .botton_btn {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 100px;
    background: #ffffff;
    box-shadow: 0px -3px 10px 0px rgba(4, 24, 48, 0.1);
    border-radius: 0px 0px 0px 0px;
    z-index: 999;
    display: flex;
    justify-content: space-between;

    .left {
      display: flex;
      flex-direction: column;
      justify-content: center;

      &>div {
        display: flex;
        align-items: center;
        padding-left: 20px;
        overflow: hidden;

        p {
          margin: 0 50px 0 0;
          font-size: 14px;
          color: #86909c;

          span {
            color: #3d3d3d;
          }
        }

        &:nth-of-type(2) {
          p {
            font-size: 18px;
            color: #3d3d3d;

            &:nth-of-type(3),
            &:nth-of-type(4) {
              span {
                color: #ff3333;
              }
            }
          }
        }
      }
    }

    .right {
      display: flex;
      justify-content: center;
      align-items: center;
      padding-right: 20px;
      overflow: hidden;

      div {
        button {
          width: 92px;
          background-color: #f2f3f5;
        }
      }
    }
  }
}

.sp_message {
  position: relative;
  display: flex;
  
  .custom-fixed-icon {
    position: absolute;
    top: -7px;
    left: -32px;
  }

  div:nth-child(1) {
    width: 80px;
    min-width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;

    img {
      width: 100%;
      height: 100%;
    }
  }

  div:nth-child(2) {
    margin-left: 10px;

    p {
      margin: 0 0 10px 0;
      color: #86909c;
      font-size: 12px;
      margin: 5px 0 5px 0;
    }

    p:first-child {
      font-size: 14px;
      color: #3d3d3d;
    }
  }
}

// 清楚定时弹框里边的样式
.time_content {
  text-align: center;

  p {
    font-size: 14px;
    margin-top: 10px;
  }
}

.clear_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0 0 0;
}

.refuse_becuse {
  p:first-child {
    font-weight: bold;
    color: #86909c;
    font-size: 24px;
  }

  div {
    height: 100px;
    box-sizing: border-box;
    border-radius: 4px 4px 4px 4px;
    border: 1px solid #dcdcdc;
    padding: 20px;
    overflow: hidden;

    p {
      margin: 0;
    }

    p:nth-child(1) {
      color: #ff3333;
      font-size: 18px;
      margin-bottom: 16px;
      font-weight: 400;
    }

    p:nth-child(2) {
      color: #3d3d3d;
      font-size: 14px;
      font-weight: 400;
    }
  }

  margin-bottom: 32px;
}

.cg_status {
  font-size: 14px !important;
  text-align: center;
}

.plan-nodes {
  .plan-nodes-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;

    .money-box {
      font-size: 16px;
      color: #86909c;

      .money {
        color: #ff3333;
      }
    }

    .info {
      font-size: 16px;
      color: #3d3d3d;
    }
  }

  .timeline-wrap {
    max-height: 600px;
    overflow-y: scroll;

    .timeline {
      ::v-deep(.el-timeline-item__tail) {
        left: 46px;
      }

      ::v-deep(.el-timeline-item__wrapper) {
        top: 0;
        padding-left: 80px;
      }

      .dot {
        width: 100px;
        height: 32px;
        line-height: 32px;
        text-align: center;
        background: #d0e7ff;
        border-radius: 4px 4px 4px 4px;
        font-size: 16px;
        color: #007dff;
      }

      .default-wrap {
        padding-top: 52px;

        .default {
          border-radius: 4px;
          border: 1px solid #dfe5f1;
          padding: 10px 20px 8px 20px;

          .default-title {
            p {
              border-left: 4px solid #007dff;
              padding-left: 8px;
            }

            font-size: 14px;
            color: #3d3d3d;
            padding-bottom: 10px;
            border-bottom: 1px solid #dfe5f1;
          }

          .descriptions {
            margin-top: 16px;

            :deep(.my-label) {
              font-size: 16px;
              color: #606266;
            }

            :deep(.my-content) {
              font-size: 16px;
              color: #606266;
            }
          }
        }
      }
    }
  }
}

.adopt-dialog {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 35px;
  line-height: 22px;
}

.dialog_line {
  width: calc(100% + 30px);
  border: 1px solid #DCDFE6;
  margin-left: -16px;
  margin-right: -16px;
}

.dialog_price {
  margin: 20px 0px;
  display: flex;
  justify-content: space-between;

  .dialog_price_item {
    width: 210px;
    height: 84px;
    background: #EEF1F4;
    border-radius: 4px 4px 4px 4px;
    display: flex;
    align-items: center;
  }
}

.dialog_pricefather {
  width: 100%;
  height: calc(100% - 28px);
  margin: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-direction: column;

  .dialog_price_num {
    font-family: PingFang SC;
    font-weight: 400;
    font-size: 16px;
    color: #3D3D3D;
  }

  .dialog_price_remark {
    font-family: PingFang SC;
    font-weight: 400;
    font-size: 12px;
    color: #86909C;
  }
}

.dialog_title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.dialog_title_text {
  width: 28px;
  height: 20px;
  font-family: PingFang SC;
  font-weight: 400;
  font-size: 14px;
  color: #3D3D3D;
}

.refuse_status {
  background-color: #FFE1E1;
  color: #f53f3f;
}

.waitpay_status {
  background-color: #FFF0D9;
  color: #FF9900;
}

.success_status {
  background-color: #E3F9E9;
  color: #14C85C;
}

.dialog_title_status {
  height: 20px;
  font-family: PingFang SC;
  font-weight: 400;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center
}

.dialog_linecenter {
  width: 100%;
  border: 1px solid #DCDFE6;
}

.dialog_countent {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  .dialog_countent_left {
    height: 20px;
    font-family: PingFang SC;
    font-weight: 400;
    font-size: 13px;
    color: #86909C;
  }

  .dialog_countent_right {
    height: 20px;
    font-family: PingFang SC;
    font-weight: 400;
    font-size: 13px;
    color: #3D3D3D;
  }
}

.dialog_foot {
  margin-top: 50px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;

}

.dialog_foot_left {
  width: 120px;
  height: 36px;
  margin: 0 10px;
  background: #F2F3F5;
  border-radius: 2px 2px 2px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1D2129;
}

.dialog_foot_right {
  width: 120px;
  height: 36px;
  margin: 0 10px;
  background: #007DFF;
  border-radius: 2px 2px 2px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;

}

:deep(.el-dialog__title) {
  position: relative;
  margin-left: 20px;

  &::before {
    position: absolute;
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #409eff;
    top: 10px;
    left: -14px;
  }
}